package com.作业.Day2;

import java.util.Scanner;

public class Homework5 {
    public static void main(String[] args) {
        System.out.println("***********************");
        System.out.println("1.客户信息管理");
        System.out.println("2.购物结算");
        System.out.println("3.真情回顾");
        System.out.println("4.销毁");
        System.out.println("***********************");
        while (true) {
            System.out.print("请选择：请输入数字:");
            Scanner scanner = new Scanner(System.in);
            int i = scanner.nextInt();
            switch (i) {
                case 1:
                    System.out.println("执行客户信息管理");
                    break;
                case 2:
                    System.out.println("执行购物结算");
                    break;
                case 3:
                    System.out.println("执行真情回顾");
                    break;
                case 4:
                    System.out.println("执行销毁");
                    break;
                default:
                    System.out.println("输入错误，请重新输入数字:");
                    continue;

            }
            System.out.println("程序结束");
                     break;
        }
    }
}
